package com.hao.dto;

import lombok.Data;

/**
 * 每日数据统计DTO
 */
@Data
public class DailyStatisticsDTO {
    
    /**
     * 日期
     */
    private String date;
    
    /**
     * 总数据条数
     */
    private Long totalCount;
    
    /**
     * 早上数据条数 (6:00-12:00)
     */
    private Long morningCount;
    
    /**
     * 中午数据条数 (12:00-18:00)
     */
    private Long noonCount;
    
    /**
     * 晚上数据条数 (18:00-24:00)
     */
    private Long eveningCount;
    
    public DailyStatisticsDTO() {}
    
    public DailyStatisticsDTO(String date) {
        this.date = date;
        this.totalCount = 0L;
        this.morningCount = 0L;
        this.noonCount = 0L;
        this.eveningCount = 0L;
    }
    
    /**
     * 获取统计信息文本
     */
    public String getStatisticsText() {
        return String.format(
            "日期：%s\n" +
            "总数据条数：%d\n" +
            "早上(6:00-12:00)：%d条\n" +
            "中午(12:00-18:00)：%d条\n" +
            "晚上(18:00-24:00)：%d条",
            date, totalCount, morningCount, noonCount, eveningCount
        );
    }
} 